.class Lcom/estrongs/android/pop/app/c0$a;
.super Landroid/content/BroadcastReceiver;
.source "ESDeviceMonitor.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/c0;-><init>()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/c0;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/c0;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/c0$a;->a:Lcom/estrongs/android/pop/app/c0;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 2

    const-string v0, "noConnectivity"

    const/4 v1, 0x0

    .line 1
    invoke-virtual {p2, v0, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    const-string v1, "networkInfo"

    .line 2
    invoke-virtual {p2, v1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object p2

    check-cast p2, Landroid/net/NetworkInfo;

    if-nez p2, :cond_0

    return-void

    :cond_0
    if-nez v0, :cond_6

    .line 3
    invoke-virtual {p2}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;

    move-result-object v0

    sget-object v1, Landroid/net/NetworkInfo$State;->DISCONNECTED:Landroid/net/NetworkInfo$State;

    if-ne v0, v1, :cond_1

    goto :goto_3

    .line 4
    :cond_1
    invoke-virtual {p2}, Landroid/net/NetworkInfo;->getType()I

    move-result p2

    const/4 v0, 0x1

    if-ne p2, v0, :cond_7

    const/4 p2, 0x0

    :try_start_0
    const-string v0, "wifi"

    .line 5
    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/net/wifi/WifiManager;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 6
    :try_start_1
    invoke-virtual {p1}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;

    move-result-object p2
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    goto :goto_0

    :catch_1
    move-exception v0

    move-object p1, p2

    .line 7
    :goto_0
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_1
    if-eqz p1, :cond_4

    if-nez p2, :cond_2

    goto :goto_2

    .line 8
    :cond_2
    invoke-virtual {p2}, Landroid/net/wifi/WifiInfo;->getSSID()Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_7

    .line 9
    invoke-static {}, Lcom/estrongs/android/util/f0;->b()Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_7

    .line 10
    invoke-static {}, Lcom/estrongs/android/util/o0;->d()Z

    move-result p1

    if-eqz p1, :cond_3

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/pop/app/c0$a;->a:Lcom/estrongs/android/pop/app/c0;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/c0;->b(Lcom/estrongs/android/pop/app/c0;)V

    .line 12
    :cond_3
    invoke-static {}, Lcom/estrongs/android/ftp/a;->j()Lcom/estrongs/android/ftp/a;

    move-result-object p1

    if-eqz p1, :cond_7

    .line 13
    invoke-static {}, Lcom/estrongs/android/ftp/a;->j()Lcom/estrongs/android/ftp/a;

    move-result-object p1

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/estrongs/android/ftp/a;->a(Landroid/content/Context;)I

    goto :goto_4

    .line 14
    :cond_4
    :goto_2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/c0$a;->a:Lcom/estrongs/android/pop/app/c0;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/c0;->a(Lcom/estrongs/android/pop/app/c0;)V

    .line 15
    invoke-static {}, Lcom/estrongs/android/ftp/a;->j()Lcom/estrongs/android/ftp/a;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 16
    invoke-static {}, Lcom/estrongs/android/ftp/a;->j()Lcom/estrongs/android/ftp/a;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/ftp/a;->g()V

    :cond_5
    return-void

    .line 17
    :cond_6
    :goto_3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/c0$a;->a:Lcom/estrongs/android/pop/app/c0;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/c0;->a(Lcom/estrongs/android/pop/app/c0;)V

    .line 18
    invoke-static {}, Lcom/estrongs/android/ftp/a;->j()Lcom/estrongs/android/ftp/a;

    move-result-object p1

    if-eqz p1, :cond_7

    .line 19
    invoke-static {}, Lcom/estrongs/android/ftp/a;->j()Lcom/estrongs/android/ftp/a;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/ftp/a;->g()V

    :cond_7
    :goto_4
    return-void
.end method
